package com.blog.user.mapper;

import com.blog.user.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zw
 * @since 2022-02-21
 */
public interface BlogMapper extends BaseMapper<Blog> {
    List<Blog> getAllBlog(@Param("pageSize") Integer pageSize,
                          @Param("limit") Integer limit);
    Integer getAllBlogCount();
    List<Blog> getAllBlogByTitle(@Param("title")String title,@Param("pageSize") Integer pageSize,
                                 @Param("limit") Integer limit);
    Integer getAllBlogByTitleCount(String title);
}
